package com.karal.javase.cher03;

/**
 * @TODO
 * @Author xu
 * 2025/3/6
 */
public class Test {
    public static void makeFly(CanFly flyingobject){
        flyingobject.fly();
    }
    public static void main(String[] args) {
        CanFly.plane=new Plane();
        makeFly(CanFly.plane);
        CanFly.bird=new Brid();
        makeFly(CanFly.bird);

    }

}
